﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Algobox.JuicyLib.Apps.NewedgeDownloader;
using NewedgeDownloaderConsole.Properties;

namespace NewedgeDownloaderConsole
{
    class Program
    {
        // default connection string
        // Data Source=localhost;Initial Catalog=LiquidView;Integrated Security=True

        // local connection string over VPN
        // Data Source=172.20.99.233;Initial Catalog=LiquidView;User ID=beic;Password=blah

        static void Main(string[] args)
        {
            NewedgeDownloader downloader = new NewedgeDownloader(
                                            Settings.Default.FTP_HOST,
                                            Settings.Default.FTP_USER,
                                            Settings.Default.FTP_PASS,
                                            Settings.Default.ARCHIVE_DIR,
                                            Settings.Default.FTP_BACKUP_DIR,
                                            Settings.Default.FTP_IGNORE_DIRS,
                                            Settings.Default.FTP_STAGE_DIR,
                                            Settings.Default.ConnectionString,
                                            Settings.Default.FTP_IS_PASSIVE);
            downloader.Run();
        }
    }
}
